package com.ruoyi.base.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品信息对象 base_good
 *
 * @author zzp
 * @date 2022-09-26
 */
public class BaseGood extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品主键
     */
    private Long id;

    /**
     * 商品代码
     */
    @Excel(name = "商品代码")
    private String goodCode;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodName;

    /**
     * 计量单位
     */
    @Excel(name = "计量单位")
    private String unitName;

    /**
     * 商品规格
     */
    @Excel(name = "商品规格")
    private String standard;

    /**
     * 金豆个数
     */
    @Excel(name = "金豆个数")
    private Integer goldBean;

    /**
     * 商品图片
     */
    private String goodImg;

    /**
     * 商品数量
     */
    private Integer amount;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 商品状态
     */
    @Excel(name = "商品状态")
    private String status;

    /**
     * 删除标志
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getStandard() {
        return standard;
    }

    public void setGoldBean(Integer goldBean) {
        this.goldBean = goldBean;
    }

    public Integer getGoldBean() {
        return goldBean;
    }

    public void setGoodImg(String goodImg) {
        this.goodImg = goodImg;
    }

    public String getGoodImg() {
        return goodImg;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodCode", getGoodCode())
                .append("goodName", getGoodName())
                .append("unitName", getUnitName())
                .append("standard", getStandard())
                .append("goldBean", getGoldBean())
                .append("goodImg", getGoodImg())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
